package com.sxmmall.ware.feign;

import com.sxmmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("sxmmall-product")
public interface ProductFeignServices {

   /**
    1. 网关
    @FeignClient("sxmmall-gateway")
    @RequestMapping("/api/product/skuinfo/info/{skuId}")
    2. 服务调用
    @FeignClient("sxmmall-product")
    @RequestMapping("product/skuinfo/info/{skuId}")
    **/
    @RequestMapping("product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

}
